<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/4/9
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%----%>
<% request.setCharacterEncoding("UTF-8"); %>
<html>
<head>
    <meta charset="UTF-8">
    <title>搜索页面</title>
</head>
<body>
    <%
        String no = request.getParameter("stuNo");
        if(no == null){
            no = "";
        }
        String name = request.getParameter("stuName");//姓名输入框里的值
        if(name == null){
            name = "";
        }
        System.out.println("搜索框的名字为："+name);
    %>
    <form action="search.jsp" method="post" >
        <input placeholder="请输入学号" style="padding: 10px;" name="stuNo" value='<%=no%>'/>
        <input placeholder="请输入学生姓名" style="padding: 10px" name="stuName"  value='<%=name%>'/>
        <button style="background: #bf2620;color: #fff;padding: 10px" type="submit">确定</button>

    </form>
    <a href="add.jsp"><button>新增</button></a>
    <jsp:include page="stu.jsp">
        <jsp:param name="stuNo" value='<%=no%>'/>
        <jsp:param name="stuName" value='<%=name%>'/>
    </jsp:include>

</body>
</html>
